package com.hopu.product.service.impl;

import java.util.List;

import com.hopu.product.dao.ProductDao;
import com.hopu.product.dao.impl.ProductDaoImpl;
import com.hopu.product.domain.Product;
import com.hopu.product.service.ProductService;

public class ProductServiceImpl implements ProductService {

	private ProductDao dao = new ProductDaoImpl();
	@Override
	public List<Product> findAll() {
		
		return dao.findAll();
	}
	@Override
	public Product findById(Product product) {
		return dao.findById(product);
	}
	@Override
	public int add(Product product) {
		return dao.add(product);
	}
	@Override
	public int remove(Product product) {
		return dao.remove(product);
	}
	@Override
	public int update(Product product) {
		return dao.update(product);
	}
	@Override
	public int removes(int[] ids) {
		return dao.removes(ids);
	}

}
